﻿<%@ Page Title="" Language="C#" MasterPageFile="~/BaseMain.Master" AutoEventWireup="true" CodeBehind="DepartmentInfo.aspx.cs" Inherits="DepartmentSystem.DepartmentInfo1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h1>部门信息列表</h1>
    <hr />
    <div style="position: relative; width: 100%; height: auto;">
        <div style="position: absolute; width: 270px; height: 35px;" class="input-group">
            <asp:Label ID="Label1" class="input-group-addon" runat="server" Text="部门号"></asp:Label>
            <asp:TextBox ID="TextBox1" class="form-control" Style="width: 200px" placeholder="部门号" runat="server"></asp:TextBox>
        </div>
        <div style="position: absolute; left: 280px;" class="input-group ">
            <asp:Label ID="Label2" class="input-group-addon" runat="server"  Text="部门名"></asp:Label>
            <asp:TextBox ID="TextBox2" Style="width: 200px" class="form-control" placeholder="部门名" runat="server"></asp:TextBox>
        </div>
        <div style="position: absolute; left: 560px">
            <asp:Button ID="Button1" class="btn btn-primary" runat="server" Text="搜索" OnClick="Button1_Click1" />
        </div>
    </div>
    <hr />
    <hr />
    <hr />
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="deptNum"
        OnRowDeleting="GridView1_RowDeleting"
        OnRowEditing="GridView1_RowEditing"
        OnRowCancelingEdit="GridView1_RowCancelingEdit"
        OnRowUpdating="GridView1_RowUpdating1" class="table table-striped table-hover" Style="width: 950px;" >
        <Columns>
            <asp:BoundField HeaderText="部门号" DataField="deptNum" ReadOnly="True" />
            <asp:BoundField HeaderText="部门名" DataField="deptName" />
            <asp:BoundField HeaderText="负责人代码" DataField="headNum" />
            <asp:BoundField HeaderText="任职时间" DataField="startTime" ReadOnly="True" />

            <asp:CommandField HeaderText="修改" ShowEditButton="True" />
            <asp:CommandField HeaderText="删除" ShowDeleteButton="True" />
        </Columns>
    </asp:GridView>

</asp:Content>
